package vip.ablog.xmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import vip.ablog.common.utils.PageUtils;
import vip.ablog.xmall.product.entity.AttrEntity;
import vip.ablog.xmall.product.vo.AttrGroupRelationVo;
import vip.ablog.xmall.product.vo.AttrResponseVo;
import vip.ablog.xmall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author jsp
 * @email jsp@gmail.com
 * @date 2020-08-10 15:58:12
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] relationVos);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrs(List<Long> attrIds);
}

